package com.dsh.dome.controller;

import com.dsh.dome.model.User;
import com.dsh.dome.service.UserService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@Api(tags = "登录信息")
@RestController
@RequestMapping("user")
public class UserController {
    @Resource
    UserService userService;
    @GetMapping("/findById111")
    public Object findById(int id){
        User user = userService.selectByPrimaryKey(id);
        return user;
    }
}
